  <%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <title></title>
</head>
<body>
<form action="/users?action=register" method="post">
  <table align="center">
    <tr>
      <th>
        <h3>注册</h3>
      </th>
    </tr>
    <tr>
      <td>账号:</td>
      <td>
        <input type="text" name="username">
      </td>
    </tr>
    <tr>
      <td>密码:</td>
      <td>
        <input type="password" name="pwd">
      </td>
    </tr>
    <tr>
      <td>重复密码:</td>
      <td>
        <input type="password" name="repwd">
      </td>
    </tr>
    <tr>
      <td>性别:</td>
      <td>
        <input type="radio" name="sex" value="1" checked>男
        <input type="radio" name="sex" value="2" />女
        <input type="radio" name="sex" value="3" />保密
      </td>
    </tr>
    <tr>
      <td>爱好：</td>
      <td>
        <input type="checkbox" name="hobby" value="1" checked/>电影
        <input type="checkbox" name="hobby" value="2" />音乐
        <input type="checkbox" name="hobby" value="3" />电竞
      </td>
    </tr>
    <tr>
      <td>密保问题:</td>
      <td>
        <select name="problem">
          <option value="1" selected>
            你父亲的生日
          </option>
          <option value="2">
            你母亲的生日
          </option>
          <option value="3">
            你配偶的生日
          </option>
        </select>
      </td>
    </tr>
    <tr>
      <td>密保答案：</td>
      <td>
        <input type="text" name="answer"/>
      </td>
    </tr>
    <tr>
      <td>个人简介：</td>
      <td>
		  <textarea rows="3" cols="23" name="introduce">
		  </textarea>
      </td>
    </tr>
    <tr align="center">
      <td colspan="2">
        <input type="submit" value="注册"/>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
